package com.freemalll.merchant.service;


import com.alibaba.fastjson.JSONObject;

import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;

/**
 * face++调用类
 *
 * @author wangw
 * @version 1.0
 * @date 2018-06-21
 */

public interface FaceHelperService {


    /**
     * 身份证识别
     *
     * @param face
     * @return
     */
    JSONObject ocrIdCard(InputStream face) throws IOException;


    /**
     * 商户证件识别
     *
     * @param image
     * @return
     */
    JSONObject ocrBankAccount(String image) throws ParseException, IOException;

    /**
     * 营业执照识别
     *
     * @param image
     * @return
     */
    JSONObject ocrBusinessLicense(String image) throws ParseException, IOException;


}
